#include "widget.h"
#include "ui_widget.h"
#include<QFont>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background-color:#404142;");
    ui->textEdit->setStyleSheet("background-color:#404142;color:#FFFFFF;");
    QFont font;
    font.setFamily("仿宋");
    font.setBold(true);
    font.setItalic(true);
    ui->textEdit->setFont(font);
    ui->pushButton_light->setStyleSheet("color:#FFFFFF;");
    ui->pushButton_day->setStyleSheet("color:#FFFFFF;");
}

void Widget::on_pushButton_day_clicked()
{
    this->setStyleSheet("background-color:#F5F6F7;");
    ui->textEdit->setStyleSheet("background-color:#FFFFFF;color:#000;");
    QFont font;
    font.setFamily("仿宋");
    font.setBold(true);
    font.setItalic(true);
    ui->textEdit->setFont(font);
    ui->pushButton_day->setStyleSheet("color:#000;");
    ui->pushButton_light->setStyleSheet("color:#000;");
}
